//
//  RSNetworkAudioPlayer.h
//  RealScene
//
//  Created by 范强伟 on 2023/10/12.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface RSNetworkAudioPlayer : NSObject

// 单例获取实例的方法
+ (instancetype)sharedInstance;
  

  
// 暂停音频方法
- (void)pauseAudio;
  
// 恢复音频方法
- (void)resumeAudio;
  

// 停止音频方法
- (void)stopAudio;


@property (nonatomic, copy)void(^timeChangeBlock)(float current,float duration);

/// 是否播放
@property(nonatomic, assign)bool isPlaying;

@property(nonatomic, retain)UITableViewCell *selectCell;

/// 是否跳转进度
@property(nonatomic, assign)bool isSeeking;

/// 是否静音
@property(nonatomic, assign)bool isMute;

/// 播放的URL
@property (nonatomic, retain)NSString *url;



- (void)playAudio;

- (void)seekToTime:(float)time;

@property (nonatomic, copy)void(^playChangeBlock)(BOOL state);
@end

NS_ASSUME_NONNULL_END
